<?php $this->_extends('_layouts/newblankbe_layout'); ?>

<?php $this->_block('vars'); ?><?php echo $nowselect; ?><?php $this->_endblock('vars'); ?>

<?php $this->_block('orderstr'); ?><?php echo $ordercol; ?><?php $this->_endblock('orderstr'); ?>

<?php $this->_block('PID'); ?><?php echo $PID; ?><?php $this->_endblock('PID'); ?>

<?php $this->_block('originalip'); ?><?php echo $originalip; ?><?php $this->_endblock('originalip'); ?>
<?php $this->_block('originalport'); ?><?php echo $originalport; ?><?php $this->_endblock('originalport'); ?>
<?php $this->_block('targetip'); ?><?php echo $targetip; ?><?php $this->_endblock('targetip'); ?>
<?php $this->_block('targetport'); ?><?php echo $targetport; ?><?php $this->_endblock('targetport'); ?>
<?php $this->_block('filename'); ?><?php echo $filename; ?><?php $this->_endblock('filename'); ?>
<?php $this->_block('state'); ?><?php echo $state; ?><?php $this->_endblock('state'); ?>

<?php $this->_block('loginIP'); ?><?php echo $loginIP; ?><?php $this->_endblock('loginIP'); ?>
<?php $this->_block('loginname'); ?><?php echo $loginname; ?><?php $this->_endblock('loginname'); ?>
<?php $this->_block('loginuser'); ?><?php echo $loginuser; ?><?php $this->_endblock('loginuser'); ?>
<?php $this->_block('loginmac'); ?><?php echo $loginmac; ?><?php $this->_endblock('loginmac'); ?>
<?php $this->_block('contents'); ?>

	<div id="getting-started">
	    
		<?php $this->_element('custom_simple',array('form'=>$form)); ?>
		
		<table cellspacing="0" cellpadding="0">
			
			<?php if($sk=='' || $sk =='content'):?>
			<tr>
				<th class="head" width="35">序号</th><th class="head" width="80">日期</th><th class="head" width="35">安全</th><th class="head" width="80">日志类型</th><th class="head">内容</th><th class="head" width="70">操作</th>							
			</tr>
			<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->security;?></td><td><?php echo Action::changeCn($s->infotype);?></td><td><div class="breakl bauto"><?php echo iconv("gb2312//TRANSLIT","utf-8",$s->content);?><div></td><td><a href="<?php echo url('default::behaviorlog/details', array('tablename' => $s->infotype,'tableid' => $s->theid)); ?>" target="_blank">详细内容</a></td></tr>
		<?php endforeach; ?>
		<?php endif;?>

		<?php if($sk=='procname'):?>
		<tr>
				<th class="head" width="35">序号</th><th class="head" width="80">日期</th><th class="head" width="35">安全</th><th class="head" width="80">日志类型</th><th class="head">内容</th><th class="head" width="70">操作</th>							
			</tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->security;?></td><td><?php echo Action::changeCn($s->infotype);?></td><td><div class="breakl bauto"><?php echo iconv("gb2312//TRANSLIT","utf-8",$s->procname);?><div></td><td><a href="<?php echo url('default::behaviorlog/details', array('tablename' => $s->infotype,'tableid' => $s->id)); ?>">详细内容</a></td></tr>
		<?php endforeach; ?>
		<?php endif;?>

		<?php if($sk=='filename'):?>
		<tr>
				<th class="head" width="35">序号</th><th class="head" width="80">日期</th><th class="head" width="35">安全</th><th class="head" width="80">日志类型</th><th class="head">内容</th><th class="head" width="70">操作</th>							
			</tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->security;?></td><td><?php echo Action::changeCn($s->infotype);?></td><td><div class="breakl bauto"><?php echo $s->filename;?><div></td><td><a href="<?php echo url('default::behaviorlog/details', array('tablename' => $s->infotype,'tableid' => $s->id)); ?>">详细内容</a></td></tr>
		<?php endforeach; ?>
		<?php endif;?>

		<?php if($sk=='process'):?>
		<tr>
				<th class="head" width="35">序号</th><th class="head" width="80">日期</th><th class="head" width="80">日志类型</th><th class="head" width="35">客户端IP</th><th class="head" width="35">目标IP</th><th class="head">访问文件路径</th><th class="head" width="70">操作</th>							
			</tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo Action::changeCn($s->infotype);?></td><td><?php echo $s->targetip.':'.$s->targetport;?></td><td><div class="breakl bauto"><?php echo $s->originalip.':'.$s->originalport;?><div></td><td><div class="breakl bauto"><?php echo $s->process;?><div></td><td><a href="<?php echo url('default::behaviorlog/details', array('tablename' => $s->infotype,'tableid' => $s->id)); ?>">详细内容</a></td></tr>
		<?php endforeach; ?>
		<?php endif;?>

		<?php if($sk=='detail'):?>
		<tr>
				<th class="head" width="35">序号</th><th class="head" width="80">日期</th><th class="head" width="35">安全</th><th class="head" width="80">日志类型</th><th class="head">内容</th><th class="head" width="70">操作</th>							
			</tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->security;?></td><td><?php echo Action::changeCn($s->infotype);?></td><td><div class="breakl bauto"><?php echo iconv("gb2312//TRANSLIT","utf-8",$s->detail);?><div></td><td><a href="<?php echo url('default::behaviorlog/details', array('tablename' => $s->infotype,'tableid' => $s->id)); ?>">详细内容</a></td></tr>
		<?php endforeach; ?>
		<?php endif;?>

		<?php if($sk=='loginip'):?>
		<tr>
				<th class="head" width="35">序号</th><th class="head" width="80">日期</th><th class="head" width="35">安全</th><th class="head" width="80">日志类型</th><th class="head">内容</th><th class="head" width="70">操作</th>							
			</tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo Action::changeCn($s->infotype);?></td><td><?php echo Action::changeCn($s->infotype);?></td><td><div class="breakl bauto">IP:<?php echo $s->loginip.'<br>登录名:'.$s->loginname.'<br>用户:'.$s->loginuser;?><div></td><td><a href="<?php echo url('default::behaviorlog/details', array('tablename' => $s->infotype,'tableid' => $s->id)); ?>">详细内容</a></td></tr>
		<?php endforeach; ?>
		<?php endif;?>			
								
		</table>	
		
		<div style="width:100%;height:50px;line-height:50px;"><center class="pagestr"><input id="startd" type="hidden" value="<?php echo $startd;?>"><input id="endd" type="hidden" value="<?php echo $endd;?>"><input id="macs" type="hidden" value="<?php echo $macs;?>"><input id="contents" type="hidden" value="<?php echo $contents;?>">
       共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条<?php echo $pagestr; ?></center>
		</div>
	</div>

<?php $this->_endblock('contents'); ?>